<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="qaCheckId" name="qaCheckId" th:value="${qaCheck.qaCheckId}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">检查时间：</label>
								<div class="col-sm-8">
									<input id="checkDate" name="checkDate" th:value="${qaCheck.checkDate}" class="form-control" type="text" autocomplete="off">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">产品批次：</label>
								<div class="col-sm-8">
									<input id="batch" name="batch" th:value="${qaCheck.batch}" class="form-control" type="text" autocomplete="off">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">产品名称：</label>
								<div class="col-sm-4">
									<select id="productId" name="productId" class="form-control">
									</select>
								</div>
								<div class="col-sm-4 input-group">
									<input type="text" id="checkProductName" class="form-control" placeholder="搜索产品名称"> <span class="input-group-btn"> <button type="button" class="btn btn-primary" onclick="getProductsByUpdate()">搜索
                                        </button> </span>
								</div>
							</div>

														<div class="form-group">	
								<label class="col-sm-3 control-label">半成品净含量：</label>
								<div class="col-sm-8">
									<input id="halfNetContent" name="halfNetContent" th:value="${qaCheck.halfNetContent}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">半成品玻璃瓶：</label>
								<div class="col-sm-8">
									<input id="halfGlassBottle" name="halfGlassBottle" th:value="${qaCheck.halfGlassBottle}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">成品标签：</label>
								<div class="col-sm-8">
									<input id="productLabel" name="productLabel" th:value="${qaCheck.productLabel}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">衡器校验：</label>
								<div class="col-sm-8">
									<input id="weighingCheck" name="weighingCheck" th:value="${qaCheck.weighingCheck}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">包装材料：</label>
								<div class="col-sm-8">
									<input id="packingMaterial" name="packingMaterial" th:value="${qaCheck.packingMaterial}" class="form-control" type="text">
								</div>
							</div>
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">检查人 默认登陆账号：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="checkBy" name="checkBy" th:value="${qaCheck.checkBy}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createBy" name="createBy" th:value="${qaCheck.createBy}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="createDate" name="createDate" th:value="${qaCheck.createDate}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="state" name="state" th:value="${qaCheck.state}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:inline="javascript">
		function setCheckDate() {
			var checkDate = [[${qaCheck.checkDate}]]
			var newDate = new Date(checkDate);
            var result = DateFormat.format(newDate, 'yyyy-MM-dd hh:mm:ss')
            laydate.render({
                elem: '#checkDate', //指定元素
                type: 'datetime',
				value: result
            });
        }
        function getProductsId() {
			return [[${qaCheck.productId}]];
		}
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/qa/qaCheck/edit.js}" src="/js/appjs/qa/qaCheck/edit.js">
	</script>
</body>
</html>
